.class public final Lnbisdk/fz;
.super Lnbisdk/lf;


# instance fields
.field private iq:Lnbisdk/au;

.field private ir:I

.field private is:Z


# direct methods
.method protected constructor <init>(Lcom/nbi/common/NBIContext;Ljava/lang/String;Lnbisdk/lf;Lnbisdk/cd;)V
    .locals 3

    invoke-direct {p0, p1, p2, p3, p4}, Lnbisdk/lf;-><init>(Lcom/nbi/common/NBIContext;Ljava/lang/String;Lnbisdk/lf;Lnbisdk/cd;)V

    const/16 v0, 0xfa

    iput v0, p0, Lnbisdk/fz;->ir:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/fz;->is:Z

    new-instance v0, Lnbisdk/au;

    const/4 v1, 0x4

    invoke-direct {v0, v1}, Lnbisdk/au;-><init>(I)V

    iput-object v0, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    iget-object v0, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {p0}, Lnbisdk/fz;->ia()Lnbisdk/lf;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lf;->ca()D

    move-result-wide v1

    iput-wide v1, v0, Lnbisdk/au;->dV:D

    iget-object v0, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {p0}, Lnbisdk/fz;->ia()Lnbisdk/lf;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/lf;->cb()D

    move-result-wide v1

    iput-wide v1, v0, Lnbisdk/au;->dW:D

    return-void
.end method


# virtual methods
.method public final Y(I)[Lcom/nbi/map/data/Coordinates;
    .locals 17

    move/from16 v0, p1

    int-to-double v0, v0

    move-wide v2, v0

    const-wide v4, 0x41584df980000000L

    div-double/2addr v2, v4

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/fz;->iq:Lnbisdk/au;

    move-object v4, v0

    invoke-virtual {v4}, Lnbisdk/au;->getLatitude()D

    move-result-wide v4

    const-wide v6, 0x400921fb54442d18L

    mul-double/2addr v4, v6

    const-wide v6, 0x4066800000000000L

    div-double/2addr v4, v6

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/fz;->iq:Lnbisdk/au;

    move-object v6, v0

    invoke-virtual {v6}, Lnbisdk/au;->getLongitude()D

    move-result-wide v6

    const-wide v8, 0x400921fb54442d18L

    mul-double/2addr v6, v8

    const-wide v8, 0x4066800000000000L

    div-double/2addr v6, v8

    const/4 v8, 0x2

    new-array v8, v8, [Lcom/nbi/map/data/Coordinates;

    invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Math;->acos(D)D

    move-result-wide v9

    add-double/2addr v9, v4

    const-wide v11, 0x4066800000000000L

    mul-double/2addr v9, v11

    const-wide v11, 0x400921fb54442d18L

    div-double/2addr v9, v11

    invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D

    move-result-wide v11

    invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D

    move-result-wide v13

    invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D

    move-result-wide v15

    mul-double/2addr v13, v15

    sub-double/2addr v11, v13

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v13

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v15

    mul-double/2addr v13, v15

    div-double/2addr v11, v13

    invoke-static {v11, v12}, Ljava/lang/Math;->acos(D)D

    move-result-wide v11

    sub-double v11, v6, v11

    const-wide v13, 0x4066800000000000L

    mul-double/2addr v11, v13

    const-wide v13, 0x400921fb54442d18L

    div-double/2addr v11, v13

    const/4 v13, 0x0

    new-instance v14, Lcom/nbi/map/data/Coordinates;

    invoke-direct {v14, v9, v10, v11, v12}, Lcom/nbi/map/data/Coordinates;-><init>(DD)V

    aput-object v14, v8, v13

    invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Math;->acos(D)D

    move-result-wide v9

    sub-double v9, v4, v9

    const-wide v11, 0x4066800000000000L

    mul-double/2addr v9, v11

    const-wide v11, 0x400921fb54442d18L

    div-double/2addr v9, v11

    invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D

    move-result-wide v2

    invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D

    move-result-wide v11

    invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D

    move-result-wide v13

    mul-double/2addr v11, v13

    sub-double/2addr v2, v11

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v11

    invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D

    move-result-wide v4

    mul-double/2addr v4, v11

    div-double/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->acos(D)D

    move-result-wide v2

    add-double/2addr v2, v6

    const-wide v4, 0x4066800000000000L

    mul-double/2addr v2, v4

    const-wide v4, 0x400921fb54442d18L

    div-double/2addr v2, v4

    const/4 v4, 0x1

    new-instance v5, Lcom/nbi/map/data/Coordinates;

    invoke-direct {v5, v9, v10, v2, v3}, Lcom/nbi/map/data/Coordinates;-><init>(DD)V

    aput-object v5, v8, v4

    return-object v8
.end method

.method public final a(Lcom/nbi/map/data/Coordinates;I)I
    .locals 3

    iget-object v0, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {p1}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lnbisdk/au;->setLatitude(D)V

    iget-object v0, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {p1}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lnbisdk/au;->setLongitude(D)V

    iput p2, p0, Lnbisdk/fz;->ir:I

    const/4 v0, 0x0

    return v0
.end method

.method public final a(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Z)V
    .locals 6

    invoke-virtual {p0}, Lnbisdk/fz;->isVisible()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lnbisdk/fz;->ai()Lnbisdk/kr;

    move-result-object v0

    check-cast v0, Lnbisdk/hf;

    const/4 v1, 0x2

    new-array v5, v1, [I

    if-eqz p3, :cond_2

    iget-object v1, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v1}, Lnbisdk/au;->getLatitude()D

    move-result-wide v1

    iget-object v3, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v3}, Lnbisdk/au;->getLongitude()D

    move-result-wide v3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/hf;->c(DD[I)V

    :goto_1
    iget-boolean v1, p0, Lnbisdk/fz;->is:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v1}, Lnbisdk/au;->getLatitude()D

    move-result-wide v1

    iget-object v3, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v3}, Lnbisdk/au;->getLongitude()D

    iget v3, p0, Lnbisdk/fz;->ir:I

    int-to-float v3, v3

    invoke-virtual {v0, v1, v2, v3}, Lnbisdk/hf;->a(DF)V

    invoke-virtual {v0}, Lnbisdk/hf;->fJ()I

    move-result v1

    invoke-virtual {v0}, Lnbisdk/hf;->fA()Lnbisdk/hf;

    move-result-object v2

    invoke-virtual {p0}, Lnbisdk/fz;->aE()Lnbisdk/co;

    move-result-object v3

    if-eqz v3, :cond_3

    invoke-virtual {v3}, Lnbisdk/co;->fa()Z

    move-result v4

    if-eqz v4, :cond_3

    if-eqz v2, :cond_3

    invoke-virtual {v2}, Lnbisdk/hf;->fJ()I

    move-result v1

    invoke-virtual {v0}, Lnbisdk/hf;->fJ()I

    move-result v0

    invoke-virtual {v2}, Lnbisdk/hf;->fJ()I

    move-result v2

    sub-int/2addr v0, v2

    int-to-float v0, v0

    invoke-virtual {v3}, Lnbisdk/co;->fi()F

    move-result v2

    mul-float/2addr v0, v2

    float-to-int v0, v0

    add-int/2addr v0, v1

    :goto_2
    iget-object v1, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v1, p0}, Lnbisdk/au;->e(Lnbisdk/lf;)V

    iget-object v1, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v1, p1, v0}, Lnbisdk/au;->a(Landroid/graphics/Canvas;I)V

    iget-object v0, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, p2, p0, v1}, Lnbisdk/au;->a(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Lnbisdk/lf;Z)V

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v1}, Lnbisdk/au;->getLatitude()D

    move-result-wide v1

    iget-object v3, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v3}, Lnbisdk/au;->getLongitude()D

    move-result-wide v3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/hf;->a(DD[I)V

    goto :goto_1

    :cond_3
    move v0, v1

    goto :goto_2
.end method

.method public final a(Lnbisdk/nv;)Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public final eP()Lcom/nbi/map/data/Coordinates;
    .locals 5

    new-instance v0, Lcom/nbi/map/data/Coordinates;

    iget-object v1, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v1}, Lnbisdk/au;->getLatitude()D

    move-result-wide v1

    iget-object v3, p0, Lnbisdk/fz;->iq:Lnbisdk/au;

    invoke-virtual {v3}, Lnbisdk/au;->getLongitude()D

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/nbi/map/data/Coordinates;-><init>(DD)V

    return-object v0
.end method

.method public final onDown(Landroid/view/MotionEvent;)Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method
